package com.medicine.model;

import java.io.Serializable;

import javax.enterprise.inject.Model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


/**
 * The persistent class for the detail_category database table.
 * 
 */
@Entity
@Table(name="detail_category")
@NamedQuery(name="DetailCategory.findAll", query="SELECT d FROM DetailCategory d")
@Model
public class DetailCategory implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	@Column(name="detail_cate_name")
	private String detailCateName;
	
	transient private boolean check;

	@Lob
	@Column(name="detail_solution")
	private String detailSolution;

	//bi-directional many-to-one association to SubCategory
	@ManyToOne
	@JoinColumn(name="sub_category_id")
	private SubCategory subCategory;

	public DetailCategory() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDetailCateName() {
		return this.detailCateName;
	}

	public void setDetailCateName(String detailCateName) {
		this.detailCateName = detailCateName;
	}

	public String getDetailSolution() {
		return this.detailSolution;
	}

	public void setDetailSolution(String detailSolution) {
		this.detailSolution = detailSolution;
	}

	public SubCategory getSubCategory() {
		return this.subCategory;
	}

	public void setSubCategory(SubCategory subCategory) {
		this.subCategory = subCategory;
	}

	public boolean isCheck() {
		return check;
	}

	public void setCheck(boolean check) {
		this.check = check;
	}


}